<?php
namespace app\common\controller;

use think\Controller;
use app\admin\service\ConfigService;

class WechatController extends Controller
{
    // 初始化
    protected function initialize()
    {
        $this->view->engine->layout('layout/default');
        $data = [
            'version' => env('app_debug') ? time() : ConfigService::getVersion(),
        ];
        $this->assign($data);
    }
}